
<!--<div id="form-top">-->
<div class="onecolumn">
    <div class="header">
        <span style="color: red; text-align: center; font-weight: bold;">Đăng ký người dùng mới</span>
    </div>
    <br class="clear"/>
    <div id="form-top">
        <?php
        $form = $this->form;
        $form->setAttribute('enctype', 'multipart/form-data');
        $form->setAttribute('action', $this->url('add-new-user/default', array('action' => 'index',)));
        $form->prepare();
        echo $this->form()->openTag($form);
        echo $this->formHidden($form->get('userID'));
        ?>
        <fieldset>
            <legend>Thông tin về người dùng</legend>                   
            <p>
                <?php
                echo $this->formLabel($form->get('fullName'));
                echo $this->formInput($form->get('fullName'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('userName'));
                echo $this->formInput($form->get('userName'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('sex'));
                echo $this->formSelect($form->get('sex'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('birthday'));
                echo $this->formRow($form->get('day'));
                ?>
                <span></span>
                <?php
                echo $this->formRow($form->get('month'));
                ?>
                <span></span>
                <?php
                echo $this->formRow($form->get('year'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('residentAddress'));
                echo $this->formInput($form->get('residentAddress'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('password'));
                echo $this->formInput($form->get('password'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('nativePlace'));
                echo $this->formInput($form->get('nativePlace'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('email'));
                echo $this->formInput($form->get('email'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('phoneNumber'));
                echo $this->formInput($form->get('phoneNumber'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('roleID'));
                echo $this->formSelect($form->get('roleID'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formLabel($form->get('description'));
                echo $this->formTextarea($form->get('description'));
                ?>
            </p>
            <p>
                <?php
                echo $this->formRow($form->get('profilePhoto'));
                ?>
            </p>
            <br class="clear">
            <div class="viewMessae" style="text-align: center">
                <?php
                if (isset($myMessage)) {
                    foreach ($myMessage as $key => $message) {
                        if ($message == "phoneNumber")
                            echo '<span style="float:right;margin:20px 500px 0px 0px;color:red;font-weight:bold;">Số điện thoại là một dãy số</span><br/>';
                        if ($message == "saveOK")
                            echo '<span style="float:right;margin:20px 500px 0px 0px;color:red;font-weight:bold;">Đăng ký người dùng thành công</span><br/>';
                        if ($message == "userExist")
                            echo '<span style="float:right;margin:20px 500px 0px 0px;color:red;font-weight:bold;"> Tên đăng nhập đã tồn tại</span><br/>';
                    }
                }
                ?>
            </div>
            <div id="button-return">
                <?php
                echo $this->formInput($form->get('register'));
                ?>
                <input type="reset" name="reset" value="Reset">
            </div>
        </fieldset>
        <?php echo $this->form()->closeTag($form); ?>
    </div>
</div>
<!-- Danh sách bạn đọc đăng ký làm thẻ-->
</div>